package es.valma.VideoClub.intefaces.controllers;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import es.valma.VideoClub.base.VideoClubSvCliente;

public class VisualizadorWebController implements IWebController{

	@Override
	public String doProcess(HttpServletRequest request,HttpServletResponse response) {
		String rc="/index";
		HttpSession sesion=request.getSession();
	    VideoClubSvCliente clienteActual=(VideoClubSvCliente)sesion.getAttribute("clienteActual");
		if(clienteActual!=null){
			rc="/visualizador";
		}else{
			rc="/index";
		}
		return rc;
	}

}
